import numpy as np
import cv2 as cv
import matplotlib.pyplot as plt
kids=cv.imread("../imgs/kids.jpg")
#图像金字塔：通过原始图像进行采样，得到一系列图像(不同分辨率)的过程
# 进行图像的上采样和下采样
up_img=cv.pyrUp(kids)
down_img=cv.pyrDown(kids)
cv.imshow("enlarge",up_img)
cv.imshow("original",kids)
cv.imshow("shrink",down_img)
cv.waitKey(0)
cv.destroyAllWindows()
